package com.lagou.task03;

/**
 * 通话套餐类
 */
public class PhoneCall implements callInterface {
    private int time;
    private int message;
    private int money;
    public PhoneCall(){}

    public PhoneCall(int time, int message, int money) {
        this.time = time;
        this.message = message;
        this.money = money;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public int getMessage() {
        return message;
    }

    public void setMessage(int message) {
        this.message = message;
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
    public void show(){
        System.out.print("通话时长"+getTime()+" ");
        System.out.print("短信条数"+getMessage()+" ");
        System.out.println("每月资费"+getMoney()+" ");
    }

    @Override
    public void show2(int time, Phone p2) {
        System.out.println("正在通话，实现了通话服务接口类");
    }
}
